import request from '@/utils/request'

// 查询报名列表
export function listStudent(query) {
  return request({
    url: '/student/list',
    method: 'get',
    params: query
  })
}

// 查询报名详细
export function getStudent(certno) {
  return request({
    url: '/student/' + certno,
    method: 'get'
  })
}

// 新增报名
export function addStudent(data) {
  return request({
    url: '/student',
    method: 'post',
    data: data
  })
}

// 修改报名
export function updateStudent(data) {
  return request({
    url: '/student',
    method: 'put',
    data: data
  })
}

// 删除报名
export function delStudent(certno) {
  return request({
    url: '/student/' + certno,
    method: 'delete'
  })
}

  // 赛事下拉选加载
export function loadCompetition() {
    return request({
      url: '/student/loadCompetition',
      method: 'get'
    })
}


